/*
 * =====================================================================================
 *
 *       Filename:  main.cc
 *
 *    Description:
 *
 *        Version:  1.0
 *        Created:  2022年01月18日 15时29分30秒
 *       Revision:  none
 *       Compiler:  gcc
 *
 *         Author:  first_name last_name (fl), fl@my-company.com
 *        Company:  my-company
 *
 * =====================================================================================
 */
#include <iostream>
#include <vector>
using std::cout;
using std::endl;
using std::string;

class Test;

//auto  Test::c= 0

class Test {
  public:
    Test() {
        auto d1 = 10;   //隐式类型定义
        int d2 = 20;    //显示类型定义
        cout << "Test(), d1=" << d1 << ", d2=" << d2 <<  endl;
        int array[10] = {0};
        auto e = array;
        //auto f[10] == array     //error
        //vector<int> g ;
        //vector<auto> h = g;     //error
    } ~Test() {
    }

  private:

    int a;

    //auto b;   //error
    static const auto c = 0;
};

int main() {
    Test* test = new Test();
    return 0;
}
